package com.rosh.rpc.core.provider;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ServiceProvider {

    /**
     * 接口
     */
    private String serviceName;

    /**
     * ip
     */
    private String serverIp;

    /**
     * rpc 端口
     */
    private int rpcPort;

    /**
     * 服务端口
     */
    private int networkPort;

    /**
     * 超时时间
     */
    private long timeout;

    /**
     * 权重
     */
    private int weight;
}
